#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int mainpdhw()
{
	char a[50], b[50] = { "\0" }, c[50] = { "\0" };
	int m, n, i, j=0;
	scanf("%[^\n]s", a);//48-57  65-90  97-122
	//strlwr(a);
	for (i = 0; a[i] != '\0'; i++)
	{
		if (96 < a[i] && 123 > a[i])
		{
			a[i] = a[i] - 32;
		}
	}
	for (i = 0; a[i] != '\0'; i++)
	{
		if ((47 < a[i] && 58 > a[i]) || (64 < a[i] && 91 > a[i]) || (96 < a[i] && 123 > a[i]))
		{
			b[j] = a[i];
			j++;
		}
	}
	j--;
	for (i = 0; i<=j; i++)
	{
		c[i]=b[j - i];
	}
	if (strcmp(b, c) == 0)
	{
		printf("ture\n");
	}
	else
	{
		printf("false\n");
	}
	//printf("%s\n%s", b, c);
	
	return 0;
}